export const ValidateForm = (form, callback) => {
  form.validateForm().then((f) => {
    if (f.isValid) {
      if (callback) callback();
    } else {
      f.showErrors();
    }
  });
};
